
<?php
require_once 'AccountAPI.php';

//GetAccount() Test
//
//echo "getAccount() Test \n";
//echo "Calling getAccount('dChen', 'dChen', '7d44c17740dcfadf0cad573bed4bcfb4');\n";
//$output = getAccount('dChen', 'dChen', '7d44c17740dcfadf0cad573be');
//echo 'SuccessCode: '.$output[0]."\n";
//$item = $output[1];
//echo 'Username: '.$item['accName'].'   ';
//echo 'dataHash: '.$item['dataHash']."\n";

//GetAccounts() Test

//echo "\n\ngetAccounts() Test \n";
//echo "Calling getAccounts('dChen', 'dChen');\n";
//$output = getAccounts('dChen', 'dChen');
//echo "OUTPUT:\n";
//print_r($output);

// echo("\n\ndeleteAccount() Test"\n);
//echo "deleteAccount('aKhan', 'aMarciniak', 'aMarciniak', '73f514708e040374a306c9f1e8343dfa');\n";
//$output = deleteAccount('aKhan', 'aMarciniak', 'aMarciniak', '73f514708e040374a306c9f1e8343dfa');
//print_r($output);


//CreateAccount() Test
//echo "\n\nCreateAccount() Test\n";
//$output = putAccount('testuser', hash('sha1','testpass'), 'aMarciniak', 'aMarciniak', '');
//print_r($output);

//UpdateAccount() Test
echo "\n\nUpdateAccount() Test\n";
$output = putAccount('tGobin', 'GobinT', 'aMarciniak', 'aMarciniak', '5f2f048dd276077530d50034ef408044');
print_r($output);

?>
